import {
    http4
} from "@/service/axios";

// sim卡列表接口
export function getSIMList(data) {
    return http4.post({
        url: "/user/net/sim/list/page",
        data,
    });
}

// sim卡新增接口
export function getAddSIM(data) {
    return http4.post({
        url: "/user/net/sim/add",
        data,
    });
}

// sim卡编辑接口
export function getEditSIM(data) {
    return http4.post({
        url: "/user/net/sim/edit",
        data,
    });
}

// sim卡删除接口
export function getDeleteSIM(data) {
    return http4.post({
        url: `/user/net/sim/remove/${data}`,
        data,
    });
}

// sim卡批量编辑状态接口
export function getStatusSIM({
    data,
    status
}) {
    return http4.post({
        url: `/user/net/sim/batch/edit/${status}`,
        data,
    });
}

// sim卡导出
export function getExportSIM(data) {
    return http4.post({
        url: "/user/net/sim/export",
        data,
        responseType: "blob",
    });
}

// 下载SIM卡信息导入模版接口
export function getSIMDownload(data) {
    return http4.get({
        url: "/user/net/sim/import/template/download",
        data,
        responseType: "blob",
    });
}